package com.centaline.androidsalesblog.model.businissobject;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * 新盘详情信息
 * Created by guilin on 16/2/23.
 */
public class NewPropExtInfoBo implements Parcelable {

    private String EstExtId;
    private String EstId;
    @SerializedName("IsOnline")
    private boolean Online;
    @SerializedName("IsTop")
    private boolean Top;
    private String AdName;
    private String IconUrl;
    private String EstType;
    private String Features;
    private String BuildingTypes;
    private String ArchitecturalStyle;
    private String OpDate;
    private String LiveDate;
    private double AveragePrice;
    private double MinUnitPrice;
    private double MaxUnitPrice;
    private double MinTotalPrice;
    private double MaxTotalPrice;
    private double MgtPrice;
    private String MgtPriceDesc;
    private String FloorCondition;
    private int CurrentSaleCnt;
    private int PropertyRight;
    private String PropertyDesc;
    private int MinBayArea;
    private int MaxBayArea;
    private int StandardLayerArea;
    private int CanSplit;
    private double RoomRatio;
    private String LiftDescription;

    public String getLiftDescription() {
        return LiftDescription;
    }

    public void setLiftDescription(String liftDescription) {
        LiftDescription = liftDescription;
    }

    @SerializedName("BaseNewProp")
    private BaseNewPropBo baseNewPropBo;

    public String getEstExtId() {
        return EstExtId;
    }

    public void setEstExtId(String estExtId) {
        EstExtId = estExtId;
    }

    public String getEstId() {
        return EstId;
    }

    public void setEstId(String estId) {
        EstId = estId;
    }

    public boolean isOnline() {
        return Online;
    }

    public void setOnline(boolean online) {
        Online = online;
    }

    public boolean isTop() {
        return Top;
    }

    public void setTop(boolean top) {
        Top = top;
    }

    public String getAdName() {
        return AdName;
    }

    public void setAdName(String adName) {
        AdName = adName;
    }

    public String getIconUrl() {
        return IconUrl;
    }

    public void setIconUrl(String iconUrl) {
        IconUrl = iconUrl;
    }

    public String getEstType() {
        return EstType;
    }

    public void setEstType(String estType) {
        EstType = estType;
    }

    public String getFeatures() {
        return Features;
    }

    public void setFeatures(String features) {
        Features = features;
    }

    public String getBuildingTypes() {
        return BuildingTypes;
    }

    public void setBuildingTypes(String buildingTypes) {
        BuildingTypes = buildingTypes;
    }

    public String getArchitecturalStyle() {
        return ArchitecturalStyle;
    }

    public void setArchitecturalStyle(String architecturalStyle) {
        ArchitecturalStyle = architecturalStyle;
    }

    public String getOpDate() {
        return OpDate;
    }

    public void setOpDate(String opDate) {
        OpDate = opDate;
    }

    public String getLiveDate() {
        return LiveDate;
    }

    public void setLiveDate(String liveDate) {
        LiveDate = liveDate;
    }

    public double getAveragePrice() {
        return AveragePrice;
    }

    public void setAveragePrice(double averagePrice) {
        AveragePrice = averagePrice;
    }

    public double getMinUnitPrice() {
        return MinUnitPrice;
    }

    public void setMinUnitPrice(double minUnitPrice) {
        MinUnitPrice = minUnitPrice;
    }

    public double getMaxUnitPrice() {
        return MaxUnitPrice;
    }

    public void setMaxUnitPrice(double maxUnitPrice) {
        MaxUnitPrice = maxUnitPrice;
    }

    public double getMinTotalPrice() {
        return MinTotalPrice;
    }

    public void setMinTotalPrice(double minTotalPrice) {
        MinTotalPrice = minTotalPrice;
    }

    public double getMaxTotalPrice() {
        return MaxTotalPrice;
    }

    public void setMaxTotalPrice(double maxTotalPrice) {
        MaxTotalPrice = maxTotalPrice;
    }

    public double getMgtPrice() {
        return MgtPrice;
    }

    public void setMgtPrice(double mgtPrice) {
        MgtPrice = mgtPrice;
    }

    public String getMgtPriceDesc() {
        return MgtPriceDesc;
    }

    public void setMgtPriceDesc(String mgtPriceDesc) {
        MgtPriceDesc = mgtPriceDesc;
    }

    public String getFloorCondition() {
        return FloorCondition;
    }

    public void setFloorCondition(String floorCondition) {
        FloorCondition = floorCondition;
    }

    public int getCurrentSaleCnt() {
        return CurrentSaleCnt;
    }

    public void setCurrentSaleCnt(int currentSaleCnt) {
        CurrentSaleCnt = currentSaleCnt;
    }

    public int getPropertyRight() {
        return PropertyRight;
    }

    public void setPropertyRight(int propertyRight) {
        PropertyRight = propertyRight;
    }

    public String getPropertyDesc() {
        return PropertyDesc;
    }

    public void setPropertyDesc(String propertyDesc) {
        PropertyDesc = propertyDesc;
    }

    public int getMinBayArea() {
        return MinBayArea;
    }

    public void setMinBayArea(int minBayArea) {
        MinBayArea = minBayArea;
    }

    public int getMaxBayArea() {
        return MaxBayArea;
    }

    public void setMaxBayArea(int maxBayArea) {
        MaxBayArea = maxBayArea;
    }

    public int getStandardLayerArea() {
        return StandardLayerArea;
    }

    public void setStandardLayerArea(int standardLayerArea) {
        StandardLayerArea = standardLayerArea;
    }

    public int getCanSplit() {
        return CanSplit;
    }

    public void setCanSplit(int canSplit) {
        CanSplit = canSplit;
    }

    public double getRoomRatio() {
        return RoomRatio;
    }

    public void setRoomRatio(double roomRatio) {
        RoomRatio = roomRatio;
    }

    public BaseNewPropBo getBaseNewPropBo() {
        return baseNewPropBo;
    }

    public void setBaseNewPropBo(BaseNewPropBo baseNewPropBo) {
        this.baseNewPropBo = baseNewPropBo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.EstExtId);
        dest.writeString(this.EstId);
        dest.writeByte(Online ? (byte) 1 : (byte) 0);
        dest.writeByte(Top ? (byte) 1 : (byte) 0);
        dest.writeString(this.AdName);
        dest.writeString(this.IconUrl);
        dest.writeString(this.EstType);
        dest.writeString(this.Features);
        dest.writeString(this.BuildingTypes);
        dest.writeString(this.ArchitecturalStyle);
        dest.writeString(this.OpDate);
        dest.writeString(this.LiveDate);
        dest.writeDouble(this.AveragePrice);
        dest.writeDouble(this.MinUnitPrice);
        dest.writeDouble(this.MaxUnitPrice);
        dest.writeDouble(this.MinTotalPrice);
        dest.writeDouble(this.MaxTotalPrice);
        dest.writeDouble(this.MgtPrice);
        dest.writeString(this.MgtPriceDesc);
        dest.writeString(this.FloorCondition);
        dest.writeInt(this.CurrentSaleCnt);
        dest.writeInt(this.PropertyRight);
        dest.writeString(this.PropertyDesc);
        dest.writeInt(this.MinBayArea);
        dest.writeInt(this.MaxBayArea);
        dest.writeInt(this.StandardLayerArea);
        dest.writeInt(this.CanSplit);
        dest.writeDouble(this.RoomRatio);
        dest.writeParcelable(this.baseNewPropBo, 0);
    }

    public NewPropExtInfoBo() {
    }

    protected NewPropExtInfoBo(Parcel in) {
        this.EstExtId = in.readString();
        this.EstId = in.readString();
        this.Online = in.readByte() != 0;
        this.Top = in.readByte() != 0;
        this.AdName = in.readString();
        this.IconUrl = in.readString();
        this.EstType = in.readString();
        this.Features = in.readString();
        this.BuildingTypes = in.readString();
        this.ArchitecturalStyle = in.readString();
        this.OpDate = in.readString();
        this.LiveDate = in.readString();
        this.AveragePrice = in.readDouble();
        this.MinUnitPrice = in.readDouble();
        this.MaxUnitPrice = in.readDouble();
        this.MinTotalPrice = in.readDouble();
        this.MaxTotalPrice = in.readDouble();
        this.MgtPrice = in.readDouble();
        this.MgtPriceDesc = in.readString();
        this.FloorCondition = in.readString();
        this.CurrentSaleCnt = in.readInt();
        this.PropertyRight = in.readInt();
        this.PropertyDesc = in.readString();
        this.MinBayArea = in.readInt();
        this.MaxBayArea = in.readInt();
        this.StandardLayerArea = in.readInt();
        this.CanSplit = in.readInt();
        this.RoomRatio = in.readDouble();
        this.baseNewPropBo = in.readParcelable(BaseNewPropBo.class.getClassLoader());
    }

    public static final Parcelable.Creator<NewPropExtInfoBo> CREATOR = new Parcelable.Creator<NewPropExtInfoBo>() {
        public NewPropExtInfoBo createFromParcel(Parcel source) {
            return new NewPropExtInfoBo(source);
        }

        public NewPropExtInfoBo[] newArray(int size) {
            return new NewPropExtInfoBo[size];
        }
    };
}
